import request from '@/utils/request'

export default {

    getBannerListPage() {
        return request({
           url: `/cmsservice/banner/0/10`,
            method: 'get'
        })
    },
   deleteBannerId(id) {
        return request({
            url: `/cmsservice/banner/remove/${id}`,
            method: 'delete'
        })
    },
   addBanner(banner) {
        return request({
            url: `/cmsservice/banner/save`,
            method: 'post',
            data: banner
        })
    }
}
